package com.mfs.common.enums;

public enum ResponseCodeEnum {
    SUCCESS(0, "操作成功"),
    ERROR(1, "操作失败"),
    PARAMS_ERROR(11, "参数错误"),
    FATAL(2, "系统异常"),
    UN_AUTH(3, "认证权限错误"),
    UN_AUTHORIZED(31, "未认证"),
    FORBIDDEN(32, "权限禁止");

    private Integer code;
    private String msg;

    ResponseCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
